<?php if (!defined('THINK_PATH')) exit();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
<style type="text/css">
.container{
   width:70%;height:auto;position:relative; left:10%; background-color: #ffffff;
}
.container .top_box{
   width:90%; height:50px; background-color: #ffffff;
}
.container .comment{
  width:90%;height:45px;margin-top: 10px;margin-bottom:20px;background-color: #ffffff; display:inline-block;
}
.container .show_comment{
   width:90%;height:450px;margin-top: 60px; background-color: #ffffff; text-align:left;
   line-height:30px;
}
.text{
  position:relative;
}
hr{
	width:90%;color:#ff7788;
}
ul{
	list-style:none;
}
li{float:left;margin-left: 5px;}

</style>
</head>

<body>
<div class="container">
	   <div align="center">
		      <div class="top_box">
		      <form action="/think/index.php/Home/Comment/comment" method="post">
		
		                 <input type="text" name="comment" class="comment"  value="请输入评论"/>
		                 <input type="submit" name="submit" value="提交评论"/>
           </form>
          </div>
          <div class="show_comment">
         
               共<?php echo ($num); ?>条评论<hr align="left"></hr>  
                     <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><ul>
               	           <li><img src=""/></li>
               	           <li><?php echo ($data["username"]); ?></li>
               	           <li><?php echo ($data["create_time"]); ?></li>
                       </ul>
                        </br>
                       <?php echo ($data["content"]); ?></br> 
                      
                       <form action="/think/index.php/Home/Comment/comment?id=<?php echo ($data["id"]); ?>" method="post">
                       <input type="text" name='text' class='text' value="请输入回复"/>
                       
                      <input type="submit" name="reply" value="回复"/>
                      
              
                     </form>
                       <hr align="right"></hr><?php endforeach; endif; else: echo "" ;endif; ?>
          </div>
       
       </div>
     </div>
</div>
</body>

</html>